package Launcher;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Client extends Remote {
	
	/**
	 * Receive a message from another client.
	 * 
	 * @param from the id of the sender of the message.
	 * @param to the id of the receiver of the message (the client itself normally).
	 * @param msg the received message.
	 * @throws RemoteException
	 */
	
	void receiveMessage(int from, int to, Serializable msg) throws RemoteException;
	
}
